package xkp.lesson5;

public class 水仙花数 {
	public static void main(String[] args) {
		for(int i = 100; i <= 999; i++) {
			//123
			//百位数
			int m = i/100;
			//十位数字
			int n = i%100/10;
			//个位数
			int k = i%10;
			if(m*m*m+n*n*n+k*k*k == i) {
				System.out.print(i+"\t");
			}
		}
	}

}
